package apibasej.db.sql.wrapper;

import apibasej.db.metadata.Col;



public class SqlPart<T> {

	// se for WrapperStrConcatWhere o wrapperTab será null e a col será null 
	private WrapperTab wrapperTab;
	private Col<T> col;
	

	public boolean isColSelect(){
		return this instanceof ColSelect<?>;
	}
	/*
	public boolean isStrConcatWhere(){
		return this instanceof StrConcatWhere;
	}*/
	public boolean isFilter(){
		return this instanceof Filter<?>;
	}
	public boolean isEntry(){
		return this instanceof Entry<?>;
	}
	
	
	public SqlPart(WrapperTab wrapperTab, Col<T> col) {
		this.wrapperTab = wrapperTab;
		this.col = col;
	}

	public WrapperTab getWrapperTab() {
		return wrapperTab;
	}
	public void setWrapperTab(WrapperTab wrapperTab) {
		this.wrapperTab = wrapperTab;
	}

	public Col<T> getCol() {
		return col;
	}
	public void setCol(Col<T> col) {
		this.col = col;
	}
	
	@Override
	public boolean equals(Object obj) {
		return this==obj;
	}
	
}
